package com.saifan.wyy_ov;

import android.app.Application;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.util.Config;

import com.saifan.wyy_ov.config.Api;
import com.saifan.wyy_ov.model.impl.GetData;
import com.saifan.wyy_ov.utils.CommonUtils;
import com.socks.library.KLog;
import com.tencent.bugly.crashreport.CrashReport;

import java.io.File;

import lomasky.ma.httpUtils.HttpUtil;
import lomasky.ma.utils.SharedPrefUtil;


/**
 * @version V1.0.0
 * @author: lomasky
 * @date: 2015-05-08 12:56
 * @descrption
 */
public class MyApp extends Application {
    //@变量名 AppFile : APK的缓存路径
    public static String AppFile;

    public static MyApp myApp;

    @Override
    public void onCreate() {
        super.onCreate();

        myApp = this;
        AppFile = CommonUtils.getSDCardPath() + "/wyy_ov";
        File file = new File(AppFile);
        // 检测路径是否存在
        if (!file.exists()) {
            file.mkdirs();// 创建该路径
        }
        String appId = "900004553";   //上Bugly(bugly.qq.com)注册产品获取的AppId
        CrashReport.initCrashReport(this, appId, true);  //初始化SDK

        KLog.init(true, "zjt");


    }


}
